package com.laamella.syntherface.synths.events;

import java.util.ArrayList;
import java.util.List;

public class EventDistributor<EVENTTYPE> {
	public final List<EventListener<EVENTTYPE>> listeners=new ArrayList<EventListener<EVENTTYPE>>();
	
	public void send(EVENTTYPE event){
		for(EventListener<EVENTTYPE> listener: listeners){
			listener.onEvent(event);
		}
	}
}
